package com.epadmin.komunikat;

public class KomunikatView {

	public String getOdbiorcy() {
		StringBuilder sb = new StringBuilder();
		for (KomunikatOdbiorcaForm item : new KomunikatMdt().getListOdbiorcy()) {
			String jsonItem = item.getAsJson();
			sb.append(jsonItem);
			sb.append(",");
		}

		if (!(sb.length() == 0)) {
			sb.deleteCharAt(sb.length() - 1);
		}

		return sb.toString();
	}

}
